package com.ebao.cn.eclaim.common.extension;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.softvan.search.server.imp.SearchSectionImp;
import com.softvan.tir.entity.SearchBean;

public class test {
	public static void main(String[] args){
		int STATE_SHANGHAI = 37;
		int RESULT_SIZE=500;
		try {
			Date startDate = new Date();
			System.out.println("调用开始时间："+startDate.toString());
			List<SearchBean> sourceList=SearchSectionImp.findSearchIndex("huangxing",RESULT_SIZE);
			if(sourceList!=null){
				for(SearchBean sourceBean:sourceList){
					System.out.println("==========================");
					System.out.println("sourceBean.getRoadid():"+sourceBean.getRoadid());
					System.out.println("sourceBean.getCity():"+sourceBean.getCity());
					System.out.println("sourceBean.getDistrict():"+sourceBean.getDistrict());
					System.out.println("sourceBean.getInputRoadNumber():"+sourceBean.getInputRoadNumber());
					System.out.println("sourceBean.getLandmark():"+sourceBean.getLandmark());
					System.out.println("sourceBean.getMaxRoadNumber():"+sourceBean.getMaxRoadNumber());
					System.out.println("sourceBean.getRoads():"+sourceBean.getRoads());
					System.out.println("==========================");
				}
			}
			Date endDate=new Date();
			System.out.println("调用结束时间："+endDate.toString());
			long between=endDate.getTime()-startDate.getTime();
			System.out.println("共用毫秒数："+between);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
